package com.hgkj.cloud.base.service.impl;

import com.hgkj.cloud.base.dao.TenantPsychologicalCaseWarningFeedbackMapper;
import com.hgkj.cloud.base.domain.TenantPsychologicalCaseWarningFeedback;
import com.hgkj.cloud.base.service.TenantPsychologicalCaseWarningFeedbackService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author ：HMM
 * @date ：Created in 2021/8/25 13:43
 * @description：TenantPsychologicalCaseFeedbackService
 */
@Service
public class TenantPsychologicalCaseWarningFeedbackServiceImpl implements TenantPsychologicalCaseWarningFeedbackService {
    @Autowired
    private TenantPsychologicalCaseWarningFeedbackMapper tenantPsychologicalCaseWarningFeedbackMapper;

    @Override
    public int deleteByPrimaryKey(Long id) {
        return tenantPsychologicalCaseWarningFeedbackMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(TenantPsychologicalCaseWarningFeedback record) {
        return tenantPsychologicalCaseWarningFeedbackMapper.insert(record);
    }

    @Override
    public int insertSelective(TenantPsychologicalCaseWarningFeedback record) {
        return tenantPsychologicalCaseWarningFeedbackMapper.insertSelective(record);
    }

    @Override
    public TenantPsychologicalCaseWarningFeedback selectByPrimaryKey(Long id) {
        return tenantPsychologicalCaseWarningFeedbackMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<TenantPsychologicalCaseWarningFeedback> listWarningFeedbackByWarningId(Long id) {
        return tenantPsychologicalCaseWarningFeedbackMapper.listWarningFeedbackByWarningId(id);
    }

    @Override
    public int updateByPrimaryKeySelective(TenantPsychologicalCaseWarningFeedback record) {
        return tenantPsychologicalCaseWarningFeedbackMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(TenantPsychologicalCaseWarningFeedback record) {
        return tenantPsychologicalCaseWarningFeedbackMapper.updateByPrimaryKey(record);
    }
}
